package com.xx.eshop.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

public class Category {

	private int id;

	@JsonProperty("text")
	private String name;

	private int sort;

	@JsonProperty("pid")
	private Integer parent_id;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public Integer getParent_id() {
		return parent_id;
	}

	public void setParent_id(Integer parent_id) {
		this.parent_id = parent_id;
	}

	@Override
	public String toString() {
		return "Category [id=" + id + ", name=" + name + ", sort=" + sort + ", parent_id=" + parent_id + "]";
	}

}
